package Thread;

public class Demo4 {
    public static void main(String[] args) throws InterruptedException {
        Object locker = new Object();

        System.out.println("等待之前");


        locker.wait();


        System.out.println("等待之后");


    }
}
